package com.lft.freshordering.entity;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;
import org.hibernate.validator.constraints.URL;

/**
 * <p>
 * 
 * </p>
 *
 * @author tyhxzy
 * @since 2024-12-02
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = false)
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键雪花算法id
     */
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 订单创建时间
     */
    private LocalDateTime createtime;

    /**
     * 订单价格(欠款)
     */
    private Integer price;

    /**
     * 下单者 外键
     */
    private Integer uid;

    /**
     * 订单状态 已支付/未支付
     */
    private String paystate;

    /**
     * 订单配送状态 1备货中 2发货中 3已收货 4
     */
    private String status;

    /**
     * 订单实际支付
     */
    private Double realpay;

    /**
     * 确认收货状态
     */
    private String confirm;
    /**
     * 发货凭证
     */
    private byte[] delivery;
}
